<div class="form-group col-md-{$_layout[$form[type].name]|default='12'} {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
    <label class="col-xs-12" for="{$form[type].name}">{$form[type].title|htmlspecialchars}</label>
    <div class="col-sm-12">
		<?php if(empty($form['extra_data'])){ ?>
			<select class="js-select2 form-control" id="{$form[type].name}" name="{$form[type].name}[]" data-placeholder="请选择一项或多项" multiple="multiple">
				<option></option>
				{volist name="form[type].options" id="option"}
				{php}$key = (string)$key;{/php}
				<option value="{$key}" {in name="key" value="$form[type].value"}selected{/in}>{$option|clear_js}</option>
				{/volist}
			</select>
		<?php }elseif(in_array('multiple',explode(' ',$form[type]['extra_attr']))){ ?>
			<select class="js-select2 form-control ajax" id="{$form[type].name}" name="{$form[type].name}[]" data-placeholder="请选择一项或多项" url="{$form[type].extra_data.url|default=''}" multiple datakey="{$form[type].extra_data.datakey|default='id'}" dataname="{$form[type].extra_data.dataname|default='name'}" limit="{$form[type].extra_data.limit|default='20'}" delay="{$form[type].extra_data.delay|default='250'}" placeholder="{$form[type].extra_data.placeholder|default='请选择'}">
				<option></option>
				{volist name="form[type].options" id="option"}
				{php}$key = (string)$key;{/php}
				<option value="{$key}" {in name="key" value="$form[type].value"}selected{/in}>{$option|clear_js}</option>
				{/volist}
			</select>
		<?php }else{ ?>	
			<select class="js-select2 form-control ajax" id="{$form[type].name}" name="{$form[type].name}[]" data-placeholder="请选择一项或多项" url="{$form[type].extra_data.url|default=''}"  datakey="{$form[type].extra_data.datakey|default='id'}" dataname="{$form[type].extra_data.dataname|default='name'}" limit="{$form[type].extra_data.limit|default='20'}" delay="{$form[type].extra_data.delay|default='250'}" placeholder="{$form[type].extra_data.placeholder|default='请选择'}">
				<!--<option></option>-->
				{volist name="form[type].options" id="option"}
				{php}$key = (string)$key;{/php}
				<option value="{$key}" {in name="key" value="$form[type].value"}selected{/in}>{$option|clear_js}</option>
				{/volist}
			</select>
		<?php } ?>
        {notempty name="form[type].tips"}
        <div class="help-block">{$form[type].tips|clear_js}</div>
        {/notempty}
    </div>
</div>